/*
    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) 2010  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef UIMANAGER_H
#define UIMANAGER_H

#include <list>
#include "Singleton.h"

class QWidget;
class RenderEngine;

class UIManager : public Singleton<UIManager>
{
	friend class Singleton<UIManager>;

	protected :

    UIManager();

	 ~UIManager();

	
  protected :
	 
	 std::list<QWidget *> _windows;

  public :

	 /** Create a new Opengl Window
	 @param parent The window's parent
	 @param iRender A pointer on the renderEngine
	 @return The Id to the Window
	 */
	 int createOglWindow(QWidget * parent = 0);

	 /** Return the window with the id passed as parameter
	 @param iId The Id of the window
	 @return A pointer to the window
	 */
	 QWidget * getWindow(int iId);
};

#endif // UIMANAGER_H
